
#include "iostream"
#include "vector"
#include "unordered_map"
#include "unordered_set"
#include "algorithm"
#include "string"
#include "list"
#include "string.h"

class OneLoop{
public:
    void run(
            int a
//            std::string&s1,std::string&s2
            ){
        int s=a%60;
        int m=a/60;

        int h=m/60;
        m%=60;

        printf("%d:%d:%d\n",h,m,s);
    }
};
class Solution {
public:
    void run() {

        bool first = true;
        int a,b,c,d,e;
        std::string s1,s2;
        while (
                std::cin>>a
//                std::getline(std::cin,s1)
                )
        {
//            std::getline(std::cin,s2);
            OneLoop loop;
            loop.run(a);
        }
    }
};

int main() {
//    bool cur_num= true;
    Solution().run();
    return 0;
}

